<#ftl encoding="UTF-8" />
        <div id="panelTop" style="position:relative; top:3px; padding:4px 0 0 8px; height:28px; width:auto;">
            <button type="button" name="_ButBack" id="ButBack" class="act__button" onclick="_InstancePageHeader.DoBack();"><i class="fa-all fa-1x fa-reply" style="margin-right:3px;"></i>返回</button>
            <button type="button" name="_ButCheck" id="ButCheck" class="act__button" onclick="_InstancePageHeader.DoCheck();"><i class="fa-all fa-1x fa-eye" style="margin-right:3px;"></i>审核</button>
            <button type="button" name="_ButUnCheck" id="ButUnCheck" class="act__button" onclick="_InstancePageHeader.Uncheck();"><i class="fa-all fa-1x fa-eraser" style="margin-right:3px;"></i>反审</button>
        </div>
        <div id="rec_position" style="position:absolute; display:inline-block; right:80px; top:14px; width:auto;">
            <span id="rec_cur_row">15</span> / <span id="rec_total_rows">15</span>
        </div>
        <div class="panel__toolbar" style="position:absolute; display:inline-block; top:8px; right:8px;">
            <div class="panel__toolbar_item">
                <button type="button" class="toolbar__button" name="_ButPrev" id="ButPrev" title="编辑上一条" onclick="_InstancePageHeader.PrevRecord();"><i class="fa-all fa-1x fa-angle-left" style="margin-right:3px;"></i></button>
            </div>
            <div class="panel__toolbar_item" disabled="disabled">
                <button type="button" class="toolbar__button" name="_ButNext" id="ButNext" title="编辑下一条" onclick="_InstancePageHeader.NextRecord();"><i class="fa-all fa-1x fa-angle-right" style="margin-right:3px;"></i></button>
            </div>
        </div>
        
        <div id="slave_area" style="position:relative; top:8px; width:100%;">
            <ul id="tabPanelHeader" class="tabstrip" style="top:0; width:100%;">
                <li id="menu_01" class="tabInactive" style="margin-left:8px;">
                    <div>
                        <span class="tab_stretch"><span class="tabtext"><abbr class="ls_01">材料信息</abbr></span></span>
                    </div>
                </li>
                <li id="menu_02">
                    <div>
                        <span class="tab_stretch"><span class="tabtext"><abbr class="ls_02">材料图片</abbr></span></span>
                    </div>
                </li>
                <li id="menu_03">
                    <div>
                        <span class="tab_stretch"><span class="tabtext"><abbr class="ls_03">材料分组情况</abbr></span></span>
                    </div>
                </li>
            </ul>
            <div id="tabPanelContent" class="tab__wrapper">
                <!-- 材料信息-->
                <div id="tabWrapper_01" class="tab__content">
                    <form id="form_data" class="form__data_content">
                        <div id="btnPanel01" style="position:relative; top:0; height:50px; border-bottom:1px solid #ddd; background-color:#fff;">
                            <div id="btnPanel_01" style="position:absolute; display:inline-block; top:12px; left: 8px; width:auto; padding:0;">
                                <button type="button" name="_ButNew" id="ButNew" class="act__button" onclick="_InstancePageHeader.New();"><i class="fa-all fa-1x fa-plus"></i>增加</button>
                                <button type="button" name="_ButSave" id="ButSave" class="act__button" onclick="_InstancePageHeader.Save(1);"><i class="fa-all fa-1x fa-save"></i>保存</button>
                            </div>
                        </div>
                        
                        <div class="data__table_wrapper">
                            <table class="data__table">
                                <colgroup>
                                    <col style="width: 8%;" />
                                    <col style="width: 20%;" />
                                    <col style="width: 8%;" />
                                    <col style="width: 15%;" />
                                    <col style="width: 9%;" />
                                    <col style="width: 15%;" />
                                    <col style="width: 8%;" />
                                    <col />
                                </colgroup>
                                <tbody>
                                    <tr>
                                        <td class="td__label"><label>供应商<em>★</em></label></td>
                                        <td colspan="3">
                                            <input type="hidden" id="SupplierId" name="_SupplierId" value="" />
                                            <input type="text" id="SupplierNo" name="_SupplierNo" tabindex="1" style="width:15%;" />
                                            <div id="ChoiceSupplier" class="form_input_dropdown_wrapper" style="width:82%;" onclick="_InstancePageHeader.DoChoiceSupplier();">
                                                <input type="text" id="SupplierName" name="_SupplierName" class="select-dropdown with_select_flag" readonly="readonly" tabindex="1" />
                                            </div>
                                        </td>
                                        <td class="td__label"><label>材料分类<em>★</em></label></td>
                                        <td colspan="3">
                                            <select id="MaterialFlag" name="_MaterialFlag" tabindex="2">
                                                <option value="-1">-- 请选择 --</option>
                                                <option value="0">面料</option>
                                                <option value="1">辅料</option>
                                                <option value="2">副资材</option>
                                                <option value="3">其它</option>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label"><label>材料名称<em>★</em></label></td>
                                        <td>
                                            <input type="text" id="MaterialName" name="_MaterialName" style="width:98%;" tabindex="3" />
                                        </td>
                                        <td class="td__label">
                                            <label for="MaterialCode">料号(唯一)<em>★</em></label>
                                        </td>
                                        <td>
                                            <input type="text" id="MaterialCode" name="_MaterialCode" tabindex="4" style="width:98%;" />
                                        </td>
                                        <td class="td__label">
                                            <label for="MaterialShortName">材料简称</label>
                                        </td>
                                        <td>
                                            <input type="text" id="MaterialShortName" name="_MaterialShortName" tabindex="5" />
                                        </td>
                                        <td class="td__label">
                                            <label for="MnemonicCode">助记码</label>
                                        </td>
                                        <td>
                                            <input type="text" id="MnemonicCode" name="_MnemonicCode" tabindex="6" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label">
                                            <label for="UomName">单位<em>★</em></label>
                                        </td>
                                        <td>
                                            <input type="hidden" id="UomId" name="_UomId" value="" />
                                            <input type="text"" id="UomNo" name="_UomNo" tabindex="7" style="width:60px;" />
                                            <div id="ChoiceUom" class="form_input_dropdown_wrapper" onclick="_InstancePageHeader.DoChoiceUom();" style="width:75px;">
                                                <input type="text" id="UomName" name="_UomName" class="select-dropdown with_select_flag" readonly="readonly" tabindex="7" />
                                            </div>
                                        </td>
                                        <td class="td__label">
                                            <label for="MaterialComposition">材料成分</label>
                                        </td>
                                        <td>
                                            <input type="text" id="MaterialComposition" name="_MaterialComposition" tabindex="8" style="width:98%;" />
                                        </td>
                                        <td class="td__label">
                                            <label for="UomName">单价</label>
                                        </td>
                                        <td>
                                            <input type="text"" id="UnitPrice" name="_UnitPrice"  tabindex="9" />
                                        </td>
                                        <td class="td__label">
                                            <label for="FabricWidth">幅宽</label>
                                        </td>
                                        <td>
                                            <input type="text" id="FabricWidth" name="_FabricWidth" style="width:98%;" tabindex="10" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label">
                                            <label for="Specification">规格</label>
                                        </td>
                                        <td>
                                            <input type="text" id="Specification" name="_Specification" style="width:98%;" tabindex="11" />
                                        </td>
                                        <td class="td__label">
                                            <label for="GramWeight">克重</label>
                                        </td>
                                        <td>
                                            <input type="text" id="GramWeight" name="_GramWeight" tabindex="12" />
                                        </td>
                                        <td class="td__label">
                                            <label for="MeshBeltOpening">织带开度</label>
                                        </td>
                                        <td>
                                            <input type="text" id="MeshBeltOpening" name="_MeshBeltOpening" tabindex="13" />
                                        </td>
                                        <td class="td__label">
                                            <label for="SilkWeave">纱支</label>
                                        </td>
                                        <td>
                                            <input type="text" id="SilkWeave" name="_SilkWeave" tabindex="14" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label">
                                            <label for="FabricMinimumLot">起染量</label>
                                        </td>
                                        <td>
                                            <input type="text" id="FabricMinimumLot" name="_FabricMinimumLot" tabindex="15" />
                                        </td>
                                        <td class="td__label">
                                            <label for="DyingSubCharge">小缸费</label>
                                        </td>
                                        <td>
                                            <input type="text" id="DyingSubCharge" name="_DyingSubCharge" tabindex="16" />
                                        </td>
                                        <td class="td__label">
                                            <label for="DyeingMinimumLot">开机量</label>
                                        </td>
                                        <td>
                                            <input type="text" id="DyeingMinimumLot" name="_DyeingMinimumLot" tabindex="17" />
                                        </td>
                                        <td class="td__label">
                                            <label for="FabricMinimumCharge">开机费</label>
                                        </td>
                                        <td>
                                            <input type="text" id="FabricMinimumCharge" name="_FabricMinimumCharge" tabindex="18" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label">
                                            <label for="TextilePrintingCharge">版费</label>
                                        </td>
                                        <td>
                                            <input type="text" id="TextilePrintingCharge" name="_TextilePrintingCharge" tabindex="19" />
                                        </td>
                                        <td class="td__label">
                                            <label for="Coefficient">单位转换系数</label>
                                        </td>
                                        <td>
                                            <input type="text" id="Coefficient" name="_Coefficient" tabindex="20" />
                                        </td>
                                        <td class="td__label">
                                            <label for="ToleranceTypeName">允许限制标准</label>
                                        </td>
                                        <td colspan="3">
                                            <input type="hidden" id="ToleranceTypeId" name="_ToleranceTypeId" value="21" />
                                            <div id="ChoiceToleranceType" class="form_input_dropdown_wrapper" onclick="_InstancePageHeader.DoChoiceToleranceType();" style="width:98%;">
                                                <input type="text" id="ToleranceTypeName" name="_ToleranceTypeName" class="select-dropdown with_select_flag" readonly="readonly" tabindex="21" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label">
                                            <label for="QualityStandard">质量标准</label>
                                        </td>
                                        <td colspan="3">
                                            <input type="text" id="QualityStandard" name="_QualityStandard" tabindex="22" style="width:98%;"/>
                                        </td>
                                        <td class="td__label">
                                            <label for="MinimumStock">最低存量</label>
                                        </td>
                                        <td>
                                            <input type="text" id="MinimumStock" name="_MinimumStock" tabindex="23" />
                                        </td>
                                        <td class="td__label">
                                            <label for="MaximumStock">最高存量</label>
                                        </td>
                                        <td>
                                            <input type="text" id="MaximumStock" name="_MaximumStock" tabindex="24" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label">
                                            <label for="SafetyStock">安全库存量</label>
                                        </td>
                                        <td>
                                            <input type="text" id="SafetyStock" name="_SafetyStock" tabindex="25" />
                                        </td>
                                        <td class="td__label"><label>材料来源<em>★</em></label></td>
                                        <td>
                                            <select id="MaterialSourceTypeId" name="_MaterialSourceTypeId" tabindex="26" style="width:135px;">
                                                <option value="-1">--- 请选择 ---</option>
                                                <#if MaterialSourceTypeList?exists>
                                                <#list MaterialSourceTypeList as item>
                                                <option value="${item.typeId}">${item.typeName}</option>
                                                </#list>
                                                </#if>
                                            </select>
                                        </td>
                                        <td class="td__label">
                                            <label for="ColourNumber">材料色号</label>
                                        </td>
                                        <td>
                                            <input type="text" id="ColourNumber" name="_ColourNumber" tabindex="27" />
                                        </td>
                                        <td class="td__label">
                                            <label for="ColourName">材料颜色</label>
                                        </td>
                                        <td colspan="3">
                                            <input type="text" id="ColourName" name="_ColourName" tabindex="28" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label" style="height:28px; line-height:28px;">
                                            <label for="CatalogueName">所属目录<em>★</em></label>
                                        </td>
                                        <td colspan="7">
                                            <input type="hidden" id="CatalogueId" name="_CatalogueId" />
                                            <div id="ChoiceCatalogue" class="form_input_dropdown_wrapper" onclick="_InstancePageHeader.DoChoiceCatalogue();" style="width:99%;">
                                                <input type="text" id="CatalogueName" name="_CatalogueName" class="select-dropdown with_select_flag" readonly="readonly" tabindex="29" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label" style="vertical-align:top; padding-top:8px;">
                                            <label for="Description">备注</label>
                                        </td>
                                        <td colspan="7">
                                            <textarea class="area" id="Description" name="_Description" rows="4" tabindex="30" style="width:99%; height:70px; resize:none;"></textarea>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label">
                                            <label for="UpdatedByName">操作情况</label>
                                        </td>
                                        <td>
                                            <input type="text" id="UpdatedByName" name="_UpdatedByName" readonly="readonly" tabindex="31" value="<#if identityUser?exists>${identityUser.getEmployeeName()}</#if>"/ style="width:90px;">
                                            <input type="text" id="UpdatedDate" name="_UpdatedDate" readonly="readonly" tabindex="32" style="width:90px;" />
                                        </td>
                                        <td class="td__label">
                                            <label for="CheckedByName">审核情况</label>
                                        </td>
                                        <td>
                                            <input type="hidden" id="CheckedBy" name="_CheckedBy" />
                                            <input type="text" id="CheckedByName" name="_CheckedByName" readonly="readonly" tabindex="33" style="width:90px;" />
                                            <input type="text" id="CheckedDate" name="_CheckedDate" readonly="readonly" tabindex="34" style="width:90px;" />
                                        </td>
                                        <td colspan="4">
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </form>
                </div>
                <!-- 材料图片-->
                <div id="tabWrapper_02" class="tab__content" style="display:none; width:100%;">
                    <div id="btnPanel02" style="padding-top:12px; margin:0 8px;">
                        <button type="button" name="_ButDelPicture" id="ButDelPicture" class="act__button" onclick="_InstancePagePicture.DeletePicture();">删除图片</button>
                        <button type="button" name="_ButViewPicture" id="ButViewPicture" class="act__button" onclick="_InstancePagePicture.ViewPicture();">查看原图</button>
                    </div>
                    <div style="position:relative; width:100%; padding:0 8px;">
                        <table id="pic__wrapper" class="data__table" style="text-align:left;">
                            <colgroup>
                                <col style="width: 90px;" />
                                <col />
                            </colgroup>
                            <tbody>
                                <tr>
                                    <td class="td__label" style="vertical-align:top; text-align:left; padding-left:0; padding-top:8px;">
                                        <label for="hzUploadFile">材料图片</label>
                                    </td>
                                    <td>
                                        <input id="t_hzUploadFile" type="hidden" value="material" />
                                        <input id="d_hzUploadFile" type="hidden" value="" />
                                        <input id="b_hzUploadFile" type="hidden" value="" />
                                        <input id="download_hzUploadFile" type="hidden" value="" />
                                        <span class="btn__add_pic">
                                            <span><em></em>添加文件</span>                                        
                                            <input type="file" id="hzUploadFile" name="_hzUploadFile" class="field__upload_file" title="支持图片、文本等格式，文件小于5M"
                                                   tabindex="19"
                                                   onchange="onFileInputChange('hzUploadFile');" />
                                        </span>
                                        <span id="filename_hzUploadFile"></span>
                                        <button type="button" id="upload_hzUploadFile" class="act__button" disabled="disabled" onclick="_InstancePagePicture.DoFileUpload();">添加图片</button>
                                        <img id="loading_hzUploadFile" alt="loading" src="${rc.contextPath}/images/icons/loading.gif" style="display:none; vertical-align:middle;" />
                                        <span id="error_hzUploadFile" style="display:none; background-color:Yellow; cursor:pointer; padding:2px;"></span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <ul id="material_pic_list" class="picList">
                        <li><img src="" alt="材料图片" style="max-width:150px; max-height: 120px;" /></li>
                    </ul>
                </div>
                <!-- 材料分组-->
                <div id="tabWrapper_03" class="tab__content" style="display:none;">
                    <div id="btnPanel03" style="padding-top:12px; height:50px; margin:0 8px;">
                        <button type="button" name="_ButMaterialGrp" id="ButMaterialGrp" class="act__button" onclick="_InstancePageGroup.AddMaterialIntoGroup();;">分组设置</button>
                    </div>
                    <div id="div03" style="position:relative; margin:0 8px;">
                        <table id="tabHead01" class="layout display">
                            <colgroup>
                                <col style="width: 36px;" />                                 
                                <col style="width: 36px;" />
                                <col style="width: 80px;" />
                                <col style="width: 200px;" />
                                <col />
                                <col style="width: 18px;" />
                            </colgroup>
                            <thead>
                                <tr>
                                    <th style="text-align:center;">#</th>                                    
                                    <th style="text-align:center;">删除</th>
                                    <th>材料组编号</th>
                                    <th>材料组名称</th>
                                    <th>描述</th>
                                    <th></th>
                                </tr>
                            </thead>
                        </table>
                        <div id="divD1" class="grid__data_wrapper" style="border-left:none; overflow-y:scroll;">
                            <table id="tabData01" class="responsive__table" style="margin-top:-1px;">
                                <colgroup>
                                    <col style="width: 36px;" />                                   
                                    <col style="width: 36px;" />
                                    <col style="width: 80px;" />
                                    <col style="width: 200px;" />
                                    <col />
                                </colgroup>
                                <tbody></tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <input id="Action" type="hidden" value="<#if action?exists>${action}<#else>0</#if>" />
        <input id="HeaderId" type="hidden" value="<#if materialId?exists>${materialId}<#else>0</#if>" />
        <input id="PictureUrl" type="hidden" value="<#if strImageUrl?exists>${strImageUrl}<#else>0</#if>" />
        <input id="NodeId" type="hidden" value="<#if nodeId?exists>${nodeId}<#else>0</#if>" />
        <input id="NodeText" type="hidden" value="<#if nodeText?exists>${nodeText}</#if>" />
        <div style="position:absolute; top:8px; right:200px;">
            <span id="CheckedTip" class="huzo_status huzo_status__green">状态：已审核</span>
        </div>
